/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cz.mzk.lidovky.articles.articlesData.errors;

/**
 *
 * @author Martin Řehánek (rehan@mzk.cz)
 */
public class EmptyFieldError implements ArticleError {

    private final String template = "Pole '%s' je prázdné";
    private final String field;

    public EmptyFieldError(String field) {
        this.field = field;
    }

    @Override
    public String getErrorMessage() {
        return String.format(template, new Object[] {field});
    }

    public String getField() {
        return field;
    }
}
